
all: htest collision java/Hash.class

htest: htest.cc XorHashMacro.h
	g++ -o htest -DNDEBUG -Wall -Winline \
	   -O3 random16hash_data.c htest.cc

collision: collisions.cc
	g++ -o collision -I. -Wall -Winline -O2 random16hash_data.c collisions.cc

java/Hash.class: java/Hash.java
	(cd java; javac Hash.java)

clean:
	rm -f htest \#* collision 
	find . -name '*~' | xargs rm -f
	find . -name '*.class' | xargs rm -f





